package com.songlanyun.modules.signin.controller.admin;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.songlanyun.common.utils.R;
import com.songlanyun.modules.signin.service.SignInRecordService;
import com.songlanyun.modules.user.controller.AbstractController;

/**
 * 签到管理-签到记录
 *
 * @author lijiahe
 * @date 2022-08-03
 */
@RestController
@RequestMapping("admin/signInRecord")
public class SignInRecordController extends AbstractController {

    @Autowired
    private SignInRecordService signInRecordService;

    @GetMapping("/page")
    // @RequiresPermissions("signIn:record:list")
    public R page(@RequestParam Map<String, Object> params) {
        return R.ok().put("page", signInRecordService.queryPage(params));
    }

}
